package gameoflife;

public class GameOfLifeCell extends Cell {

	private final boolean isLive;

	private GameOfLifeCell(int x, int y, boolean isLive) {
		super(x, y);
		this.isLive = isLive;
	}

	public static GameOfLifeCell live(int x, int y) {
		return new GameOfLifeCell(x, y, true);
	}

	public static GameOfLifeCell death(int x, int y) {
		return new GameOfLifeCell(x, y, false);
	}

	public boolean isLive() {
		return isLive;
	}

}
